package Controlador;

import java.io.IOException;

public class Login {
    private DAOMySQL.Funcionarios personalDAO;
    public Login(){
        
    }
    public Login(String user, String pass){
        //personalDAO = new DAOMySQL.Personal();
    }
    
    public boolean isValido(String user, String pass){
        personalDAO = new DAOMySQL.Funcionarios();
        //System.out.println("USER: "+user+" PASS: "+pass);
        if(! personalDAO.validarUsuario(user, pass)){
            return true;
        }else{
            return false;
        }
    }
    
    public boolean isAdmin(String user){
        personalDAO = new DAOMySQL.Funcionarios();
        if(! personalDAO.validarPerfil(user)){
            return true;
        }else{
            return false;
        }
    } 

}
    